package com.cyan.app.workflow.common;


import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


public class HttpConfig {
    /**接口地址*/
    public static String Main_FacNo = "A";
    public static String Main_FactoryID = "E03BD96D-6BF3-1014-6380-001FE1C4AA87";
    public static String HTTP_MAIN_BASE_URL = "http://10.0.2.2:88";
  //  public static String HTTP_MAIN_BASE_URL = "http://192.168.0.107:89";
    public static String HTTP_MAIN_SERVER_URL =  HTTP_MAIN_BASE_URL +"/Services/MainHandler.ashx";
   public static String HTTP_MAIN_API_URL =  HTTP_MAIN_BASE_URL +"/api/MainHandler";
    //轮播
    public static String HTTP_BANNER_SERVER_URL = "http://192.168.2.186:809/Login/ashx/Banner.ashx";
    //导航菜单
    public static String HTTP_HOME_SERVER_URL = "http://192.168.2.186:809/Login/ashx/Home.ashx";
    //sfc模块
    public static String HTTP_SFC_SERVER_URL = "http://192.168.2.186:809/SFC/ashx/SfcHandler.ashx";
    //public static String HTTP_SFC_SERVER_URL = "http://172.17.17.222:809/SFC/ashx/SfcHandler.ashx";
    //人事
    public static String HTTP_HR_SERVER_URL = "http://192.168.2.186:809/HR/HRHandler.ashx";
    /**版本更新*/
    public static String HTTP_UPGRADER_SERVER_URL = "http://192.168.2.186:809/UpgraderHandler.ashx";

    //工单信息
    public static String HTTP_MANNOINFO_SERVER_URL = "http://192.168.2.186:809/SFC/MannoInfo.htm";


//    static {
//        try {
////            InputStream inputStream = AppContext.getInstance().getAssets().open("server.dat");
////            Properties properties = new Properties();
////            properties.load(inputStream);
////            HTTP_MAIN_SERVER_URL = properties.getProperty("HTTP_MAIN_SERVER_URL", HTTP_MAIN_SERVER_URL);
//
//        } catch (exception e) {
//            e.printStackTrace();
//        }
//    }

    /**接口编号*/
    public static String HTTP_MAIN_SERVER_ACTION_30701 = "30701"; //库位统计
    public static String HTTP_MAIN_SERVER_ACTION_324 = "324"; //仓库库位调拨
}
